import { http } from "@/utils"

const { makeAutoObservable, runInAction } = require("mobx")

class UserStore {
  usernifo = {}
  constructor() {
    makeAutoObservable(this)
  }
  getUserNifo = async () => {
    const res = await http.get('/user/profile')
    runInAction(() => {
      this.usernifo = res.data

    })
  }
}
export default UserStore